package com.emergency.embackend.mapper;

import com.emergency.embackend.entity.QuizSuitData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author chddd
 * @description
 * @create 2024/3/14 22:17:27
 */
@Mapper
public interface QuizSuitDataMapper {
    /**
     * 增加中间表数据
     * @param quizSuitDatas
     */
    void add(@Param("quizSuitDatas") List<QuizSuitData> quizSuitDatas);

    /**
     * 根据套题id删除数据
     * @param quizSuitId
     */
    void deleteByQuizSuitId(Long quizSuitId);

    /**
     * 获取题库ids
     * @param quizSuitId
     * @return
     */
    List<Long> getDataIds(Long quizSuitId);
}
